部署Python环境

    1.下载python到software目录
          wget  https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz

    2.解压缩到software目录
        tar -zxvf Python-3.6.5.tgz -C ~/software

    3.安装python依赖
        yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

    4.编译python
        app目录下新建python3文件夹
            mkdir ~/app/python3
        在Python-3.6.5根目录编译源码
            ./configure  --prefix=/home/hadoop/app/python3
            执行以下命令  安装
            make && make install

    5.配置环境变量
        vi ~/.bash_profile
        export PATH = /home/hadoop/app/python3/bin:$PATH
        使配置环境变量生效
             source ~/.bash_profile

    6.测试是否安装成功
        python3
        退出命令
            quit();




